<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>	
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<base href="<%=basePath%>" />
<link rel="stylesheet" type="text/css" href="ui/bootstrap/css/bootstrap.css" />
<style type="text/css">
#main_con { margin-top: 80px; }
</style>
<script src="scripts/vendor/LAB.js"></script>
<script>
$LAB.script('scripts/vendor/jquery-1.7.1.min.js').wait()
.script('scripts/vendor/knockout-2.0.0.js').wait()
.script('scripts/viewmodel/model.user.js').wait()
.script('scripts/viewmediator/mediator.user-login.js').wait()
.script('scripts/application.js').wait(function(){
	$.ajaxSettings.async = false;
	initUserLoginForm();
});
</script>
<title><s:text name="web-name"/></title>
</head>
<body>
	<div id="main_con" class="container">
		<div class="row">
			<!-- 宣传栏 -->
			<div class="span8">
				<div class="hero-unit">
					<h2><s:text name="web-name"/></h2>
					<p>这是一个相互学习的净土,一个你我共同学习,共同进步的世界!</p>
					<p>
						<a href="regist.action" class="btn btn-primary btn-large">
							免费注册,共同学习! </a>
					</p>
				</div>
			</div>
			<!-- 登录框 -->
			<div class="span4">
				<form id="sub_lo" action="submit-login.action" method="post" class="form-horizontal">
					<div class="control-group">
						<label for="username" >用户名</label>
						<div >
							<input id="username" name="user.username" value="${param.username }"  type="text" class="input-medium" />
							<label id="lo_info" class="hide alert alert-error">登录失败:用户名或者密码失败</label>
						</div>
					</div>
					<div class="control-group">
						<label for="password">密码</label>
						<div >
							<input id="password" name="user.password"   type="password" class="input-medium" />
						</div>
					</div>
					<div >
					<input class="btn btn-primary" type="submit" value="确定" />
					&nbsp;&nbsp;
					<a href="sss">忘记密码?</a>
					</div>
					
				</form>
			</div>
		</div>
	</div>
	<!-- container end -->

</body>
</html>